import {request} from "./request";

//提交订单信息
export function confirmOrder(orderInfo){
    return request({
        url: '/order/add',
        method: 'post',
        data: orderInfo
    })
}

//根据用户获取订单信息
export function getMyOrder(userId){
    return request({
        url: '/order/get',
        params:{
            userId
        }
    })
}

//删除订单
export function delOrder(orid){
    return request({
        url: '/order/del',
        method: 'delete',
        data:{
            orid
        }
    })
}